/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class UniversalRemoteControl {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010020035';
    }

    get categoryName() {
        return '\u4e07\u80fd\u9065\u63a7\u5668';
    }

    getDirectiveList(params) {
        return command({
            method: 'getDirectiveList',
            methodId: 'pghzWYLd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemoteControlList(params) {
        return command({
            method: 'getRemoteControlList',
            methodId: 'ptRSbsKL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSentDirective(params) {
        return command({
            method: 'getSentDirective',
            methodId: 'phEq1DUZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pdN73uzS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDeleteDirective(params) {
        return command({
            method: 'setDeleteDirective',
            methodId: 'pZgRtGtU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDeleteRemoteControl(params) {
        return command({
            method: 'setDeleteRemoteControl',
            methodId: 'pGox7xBC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setDirective(params) {
        return command({
            method: 'setDirective',
            methodId: 'peHyqS9m',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLearnDirective(params) {
        return command({
            method: 'setLearnDirective',
            methodId: 'pUPQO3iw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setRemoteControlName(params) {
        return command({
            method: 'setRemoteControlName',
            methodId: 'ppAXiV2P',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSendDirective(params) {
        return command({
            method: 'setSendDirective',
            methodId: 'pDrhEcbr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'p1vFB84A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default UniversalRemoteControl;
